// 封装所有的发起请求
import http from '../utils/http.js'
const baseUrl = "http://172.16.110.80:8080/"

// 获取父类
export const getClasify = () =>{
	return http({
			url: baseUrl+"/shopping/category/getParentList",
			method: 'get'
		})
}

// 根据父类显示子类
export const getChildren = (data) =>{
	return http({
			url: baseUrl+"/shopping/category/getList",
			method: 'get',
			data
		})
}

// 显示子类的商品
export const getClassifyGoods = (data) =>{
	return http({
			url: baseUrl+"/shopping/goods/getGoodsByIds",
			method: 'get',
			data
		})
}
